package com.changgou.content.feign;

import com.changgou.content.pojo.Content;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author wzw
 * Feign远程调用
 * @Date 0:22 2020/12/13
 * @return
**/
@FeignClient(name = "content")
@RequestMapping("/content")
public interface ContentFeign {
    /**
     * @author wzw
     * 通过广告分类id获取广告列表数据
     * @Date 0:31 2020/12/13
     * @param categoryId
     * @return java.util.List<com.changgou.content.pojo.Content>
    **/
    @GetMapping("findContentListByCategoryId/{categoryId}")
    List<Content> findContentListByCategoryId(@PathVariable(value = "categoryId")Long categoryId);

}
